package com.dykj.fireFighting.server.base.dev.service.impl;

import com.dykj.fireFighting.api.base.dev.entity.DevHisFiles;
import com.dykj.fireFighting.api.base.dev.service.IDevHisFilesService;
import com.dykj.fireFighting.api.base.file.entity.DataFiles;

import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.base.dev.mapper.DevHisFilesMapper;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

/**
 * dev_his 与data_files 关联表
 *
 * @Author zly
 * @Date  2021-07-15 13:48:55
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class DevHisFilesServiceImpl extends BaseServiceImpl<DevHisFilesMapper, DevHisFiles> implements IDevHisFilesService {



    @Override
    public List<DataFiles> getImgsByHisId(String id, String tableType,String tableName) {
        return this.baseMapper.getImgsByHisId(id,tableType,tableName);
    }

    @Override
    public int insert(DevHisFiles devHisFiles) {
        return this.baseMapper.insert(devHisFiles);
    }
}
